首页
Claude Code的VSCode插件升级到2.0后跳过登录的配置方案
首先创建 ~/.claude/config.json
配置 (这个值是随便填的):
json
{ "primaryApiKey": "llej" }
然后打开插件的设置页面,点击在 settings.json 中编辑环境变量
配置如下,即可正常在插件 ui 中问问题了
json
"claude-code.environmentVariables": [ { "name": "ANTHROPIC_AUTH_TOKEN", "value": "你的sk密钥" }, { "name": "ANTHROPIC_BASE_URL", "value": "https://open.bigmodel.cn/api/anthropic" } ],